package com.flex.mobile.service;

import com.flex.mobile.timer.TimerHandler;

public interface TimerService {

   public String getTimerString();

   public void startTimer();

   public void stopTimer();

   public void registeTimerHandler(TimerHandler timerHandler);

   public int registeTimer(String timerKind, String objectID, String timerName,
         String parameter, long trigTime);

   public long registeCycleTimer(String timerKind, String objectID,
         String timerName, String parameter, long firstTrigTime, long interval,
         int trigTimes);

   public int unregisteTimer(String timerKind, String objectID);

   public int unregisteTimer(String timerID);

   public int suspendTimer(String timerKind, String objectID, int time);

   public int suspendTimer(int timerID, int time);

   public int resumeTimer(String timerKind, String objectID, int time);

   public int resumeTimer(int timerID, int time);

   public long queryTimerFirstTrigTime(String timerKind, String objectID);

   public void clearEndedTimer();
}
